//
//  LXMainViewController.swift
//  zhibo
//
//  Created by Echo on 16/9/21.
//  Copyright © 2016年 Echo. All rights reserved.
//

import UIKit

class LXMainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        addChildVc("Home")
        addChildVc("Live")
        addChildVc("Follow")
        addChildVc("Profile")

    }
}

extension LXMainViewController {
    private func addChildVc(storyboardName : String){
        
        let childVc = UIStoryboard(name: storyboardName, bundle: nil).instantiateInitialViewController()!
        
        addChildViewController(childVc)
        
    }
}


